package com.hsc.yalebao.adapter;

import android.annotation.SuppressLint;
import android.content.Context;
import android.content.res.Resources;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.hsc.yalebao.model.GetZZZHlistBaseBean;
import java.util.ArrayList;
import java.util.HashMap;

public class ZZZHListAdapter extends BaseAdapter
{
  private String Ctype;
  String TAG = "ZZZHListAdapter";
  private Context context;
  int count = 1;
  ViewHolder holder = null;
  private LayoutInflater inflater;
  private ArrayList<GetZZZHlistBaseBean> list;
  HashMap<Integer, View> mapView = new HashMap();
  private Resources resources = null;

  public ZZZHListAdapter(Context paramContext, ArrayList<GetZZZHlistBaseBean> paramArrayList, String paramString)
  {
    this.context = paramContext;
    this.inflater = LayoutInflater.from(paramContext);
    this.list = paramArrayList;
    this.Ctype = paramString;
    this.resources = paramContext.getResources();
  }

  public int getCount()
  {
    if (this.list == null)
      return 0;
    return this.list.size();
  }

  public Object getItem(int paramInt)
  {
    return this.list.get(paramInt);
  }

  public long getItemId(int paramInt)
  {
    return paramInt;
  }

  @SuppressLint({"NewApi"})
  public View getView(int paramInt, View paramView, ViewGroup paramViewGroup)
  {
    if (paramView == null)
    {
      this.holder = new ViewHolder();
      if ("1".equals(this.Ctype))
        paramView = this.inflater.inflate(2130903236, null);
      if ("2".equals(this.Ctype))
        paramView = this.inflater.inflate(2130903234, null);
      this.holder.tv_bankname = ((TextView)paramView.findViewById(2131100004));
      this.holder.tv_username = ((TextView)paramView.findViewById(2131100005));
      this.holder.tv_zhihang = ((TextView)paramView.findViewById(2131100393));
      this.holder.card_number = ((TextView)paramView.findViewById(2131100392));
      paramView.setTag(this.holder);
    }
    GetZZZHlistBaseBean localGetZZZHlistBaseBean;
    while (true)
    {
      localGetZZZHlistBaseBean = (GetZZZHlistBaseBean)this.list.get(paramInt);
      if (localGetZZZHlistBaseBean != null)
        break;
      return paramView;
      this.holder = ((ViewHolder)paramView.getTag());
    }
    String str1 = localGetZZZHlistBaseBean.getBankname();
    if (!"".equals(str1))
    {
      this.holder.tv_bankname.setText(str1);
      String str2 = localGetZZZHlistBaseBean.getBankaddress();
      if ("".equals(str2))
        break label301;
      this.holder.tv_zhihang.setText(str2);
      label226: String str3 = localGetZZZHlistBaseBean.getAccountholder();
      if ("".equals(str3))
        break label316;
      this.holder.tv_username.setText(str3);
    }
    while (true)
    {
      String str4 = localGetZZZHlistBaseBean.getBankcardid();
      if ("".equals(str4))
        break label331;
      this.holder.card_number.setText(str4);
      return paramView;
      this.holder.tv_bankname.setText("获取中...");
      break;
      label301: this.holder.tv_zhihang.setText("获取中...");
      break label226;
      label316: this.holder.tv_username.setText("获取中...");
    }
    label331: this.holder.card_number.setText("获取中...");
    return paramView;
  }

  public void setData(ArrayList<GetZZZHlistBaseBean> paramArrayList)
  {
    this.list = paramArrayList;
  }

  public class ViewHolder
  {
    private TextView card_number;
    private TextView tv_bankname;
    private TextView tv_username;
    private TextView tv_zhihang;

    public ViewHolder()
    {
    }
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.hsc.yalebao.adapter.ZZZHListAdapter
 * JD-Core Version:    0.6.2
 */